home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / std_unix / archive / text0020.txt < prev    next >
Encoding:
Text File  |  1993-07-06  |  1.0 KB  |  27 lines

  1. Submitted-by: meulenbr@prl.philips.nl (Frans Meulenbroeks)
  2.  
  3. I'm trying to implement controlling ttys as specified in POSIX 1003.1,
  4. but unfortunately the book is not very clear on what to do if 
  5. there is no controlling tty, and an open on /dev/tty is attempted.
  6. My best guess would be to reject the open and return an errno.
  7. If that is right, then what is the best errno value to return?
  8. EACCESS??  If that is wrong, what else should be done?
  9.  
  10. Also, it is not quite clear to me what should happen if the controlling
  11. tty is disassociated from the session, while a child process still 
  12. has a stream open to /dev/tty. The standard says that you should
  13. behave as if a modem was disconnected, but what does that exactly
  14. mean in operational terms (e.g. what happens with successive reads,
  15. ioctls and writes; which error codes need to be returned etc.).
  16.  
  17. Any comment clearing up this matter is highly welcome.
  18.  
  19. Thanks,
  20.  
  21. -- 
  22. Frans Meulenbroeks        (meulenbr@prl.philips.nl)
  23.     Philips Research Laboratories
  24.  
  25. Volume-Number: Volume 31, Number 21
  26.  
  27.